cmake_minimum_required(VERSION 3.5.1)
project(Hello-Thrift-Server)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

SET (THRIFT_INCLUDE_DIR "/Users/han/Downloads/thrift-0.15.0/lib/cpp/src/thrift")
SET(DIR_SRC ../gen-cpp)

add_library(landing_thrift ${DIR_SRC} ${THRIFT_INCLUDE_DIR})
#target_link_libraries(landing_thrift ${THRIFT_INCLUDE_DIR})

add_executable(Server CppServer.cpp)
target_link_libraries(Server landing_thrift)